<script>
  export default {
    onLaunch: function() {
      // 1. 获取 音频实例对象，并赋给了当前 App 实例
      //      this.$scope === getApp()
      this.$scope.audioCtx = uni.createInnerAudioContext()
      
      // 2. 获取系统信息
      const data = uni.getSystemInfoSync()
      this.$scope.systemInfo = data
      
      // 3. 计算出当前屏幕下，px与rpx的换算比例
      this.$scope.rpxBili = data.screenWidth / 750
      console.log(this.$scope.rpxBili)
    }
  }
</script>

<style>
  /*每个页面公共css */
  @font-face {
    font-family: 'iconfont';
    /* project id 1504257 */
    src: url('//at.alicdn.com/t/font_1504257_w6csjfi3irp.eot');
    src: url('//at.alicdn.com/t/font_1504257_w6csjfi3irp.eot?#iefix') format('embedded-opentype'),
      url('//at.alicdn.com/t/font_1504257_w6csjfi3irp.woff2') format('woff2'),
      url('//at.alicdn.com/t/font_1504257_w6csjfi3irp.woff') format('woff'),
      url('//at.alicdn.com/t/font_1504257_w6csjfi3irp.ttf') format('truetype'),
      url('//at.alicdn.com/t/font_1504257_w6csjfi3irp.svg#iconfont') format('svg');
  }

  .iconfont {
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .iconbofang:before {
    content: "\e8a3";
  }

  .iconplus-circle:before {
    content: "\e781";
  }

  .iconuser:before {
    content: "\e7ae";
  }

  .iconhome:before {
    content: "\e7c6";
  }
</style>
